<?php
//Todo 添加文件功能说明

namespace app\index\validate;

use think\Validate;

Class RbacUser extends Validate
{
    protected $rule= [
        'username' => 'require|max:32',
        'password' => 'require|min:6',

    ];

    protected $message =[
        'username.require' => '用户名不能为空',
        'username.max' => '用户名最多为32个字符',
        'password.require' => '密码不能为空',
        'password.min' => '密码不能少于6位'
    ];

}
